import time
import pygame

"""

pip install   pyinstaller 

C:\\Users\yxb\Downloads\glasses.MP3

set http_proxy=http://127.0.0.1:7890 & set https_proxy=http://127.0.0.1:7890
curl https://www.google.com
pip install pygame




"""

audio_path_0 = r"C:\Users\yxb\Downloads\glasses.MP3"


def Play_Aduio_File(Aduio_file_name):
    folder_path = r'C:\Users\yxb\Downloads'
    Aduio_file_path = folder_path + "\\" + Aduio_file_name
    pygame.mixer.init()  # 初始化音频
    track = pygame.mixer.music.load(Aduio_file_path)  # 载入音乐文件
    pygame.mixer.music.play()
    time.sleep(3)  # 播放 xx 秒
    pygame.mixer.music.stop()


# 每隔 25 分钟, 打印输出一次
while True:
    print("glasses now .................   ")
    Play_Aduio_File("glasses.mp3")
    time.sleep(25 * 60)
